﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Site.Master" AutoEventWireup="true"
    CodeBehind="kpsh.aspx.cs" Inherits="聚欣订单分析.kpsh" %>

<%@ Register Assembly="DevExpress.Web.v18.1, Version=18.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web" TagPrefix="dx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CPH_NAV" runat="server">
    <h2>开票审核</h2>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="CPH_Contents" runat="server">
    <div class="content-page">
        <div class="content">
            <div class="am-g">
                <!-- Row start -->
                <div class="card-box">
                    <dx:ASPxGridView ID="ASPxGridView1" ClientInstanceName="grid" runat="server" Width="100%"
                        AutoGenerateColumns="False" DataSourceID="SqlDataSource1" KeyFieldName="ID">
                        <Columns>
                            <dx:GridViewCommandColumn Caption="选择" VisibleIndex="0" Width="50px" ShowSelectButton="true">
                                
                            </dx:GridViewCommandColumn>
                            <dx:GridViewDataTextColumn FieldName="ID" VisibleIndex="1" Visible="false">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="DDID" VisibleIndex="1" Visible="false">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="年份" VisibleIndex="1" Width="70px">
                                <EditFormSettings Visible="False" />
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="订单号" VisibleIndex="2" Width="90px">
                                <EditFormSettings Visible="False" />
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataComboBoxColumn FieldName="开票" VisibleIndex="2" Width="60px">
                                <EditFormSettings Visible="False" />
                                <PropertiesComboBox>
                                    <Items>
                                        <dx:ListEditItem Text="已开" Value="已开" />
                                        <dx:ListEditItem Text="未开" Value="未开" />
                                    </Items>
                                </PropertiesComboBox>
                            </dx:GridViewDataComboBoxColumn>
                            <dx:GridViewDataTextColumn FieldName="订单金额" VisibleIndex="2">
                                <EditFormSettings Visible="False" />
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataDateColumn FieldName="订单日期" VisibleIndex="2">
                                <EditFormSettings Visible="False" />
                            </dx:GridViewDataDateColumn>
                            <dx:GridViewDataSpinEditColumn FieldName="开票金额" VisibleIndex="2">
                                <PropertiesSpinEdit DecimalPlaces="2">
                                </PropertiesSpinEdit>
                            </dx:GridViewDataSpinEditColumn>
                            <dx:GridViewDataDateColumn FieldName="开票日期" VisibleIndex="2">
                            </dx:GridViewDataDateColumn>
                            <dx:GridViewDataTextColumn FieldName="有无订单合同" VisibleIndex="2">
                                <EditFormSettings Visible="False" />
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="省" VisibleIndex="3" Width="70px">
                                <EditFormSettings Visible="False" />
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="地市" VisibleIndex="4" Width="70px">
                                <EditFormSettings Visible="False" />
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="运营商" VisibleIndex="4" Width="250px">
                                <EditFormSettings Visible="False" />
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="项目" VisibleIndex="4" Width="250px">
                                <EditFormSettings Visible="False" />
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="状态" VisibleIndex="18">
                                <EditFormSettings Visible="False" />
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataMemoColumn Caption="备注" FieldName="BZ" VisibleIndex="19">
                                <EditFormSettings ColumnSpan="4" RowSpan="4" />
                            </dx:GridViewDataMemoColumn>
                        </Columns>
                        <Settings ShowGroupPanel="true" ShowHorizontalScrollBar="true" ShowFilterRow="true" />
                        <SettingsPager PageSize="30">
                        </SettingsPager>
                        <SettingsEditing Mode="PopupEditForm" PopupEditFormVerticalAlign="WindowCenter" PopupEditFormHorizontalAlign="WindowCenter"
                            PopupEditFormWidth="600px" />
                    </dx:ASPxGridView>
                    <br />
                    <table>
                        <tr>
                            <td>
                                <dx:ASPxButton ID="btnUpload" runat="server" Text=" 通 过 " OnClick="btnUpload_Click">
                                    <Image Url="~/images/ICON/accept.png">
                                    </Image>
                                </dx:ASPxButton>
                            </td>
                            <td>
                                <dx:ASPxButton ID="bthTh" runat="server" Text=" 退 回 " OnClick="bthTh_Click">
                                    <Image Url="~/images/ICON/cancel.png">
                                    </Image>
                                    <ClientSideEvents Click="function(s, e) {
    if(!window.confirm('确定退回？'))
    {
    e.processOnServer =false;
    }
}" />
                                </dx:ASPxButton>
                            </td>
                        </tr>
                    </table>
                    备注：
    <dx:ASPxMemo ID="ASPxMemo1" runat="server" Height="83px" Width="216px">
    </dx:ASPxMemo>
                </div>
            </div>
            <!-- Row end -->
        </div>
    </div>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:JXDDConnectionString %>"
        SelectCommand="SELECT * FROM [v_KPSH] WHERE ZT=0"></asp:SqlDataSource>
</asp:Content>
